<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>基本设置</title>
    {template 'stourtravel/public/public_min_js'}
    {Common::getCss('style.css,base.css,base_new.css')}
    {Common::getScript('config.js')}

</head>
<body>

    <table class="content-tab" html_strong=H4WX4t >
        <tr>
            <td width="119px" class="content-lt-td" valign="top">
                {template 'stourtravel/public/leftnav'}
                <!--右侧内容区-->
            </td>
            <td valign="top" class="content-rt-td">
                <form id="configfrm">
                    <div class="w-set-con">
                        <div class="cfg-header-bar">
                            <div class="cfg-header-tab">
                                <span class="item"   onclick="location.href=SITEURL+'contract/admin/contract/index/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'"  >合同模板</span>
                                <span class="item"    onclick="location.href=SITEURL+'contract/admin/contract/config/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'" >乙方信息管理</span>
                                <span class="item"    onclick="location.href=SITEURL+'contract/admin/dispose/get_list/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'" >合同签订</span>
                                <span class="item on"    onclick="changeTab(this)" >合同配置</span>
                                <span class="item"    onclick="location.href=SITEURL+'contract/admin/contract/set_signed/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'" >签署人配置</span>
                            </div>
                            <a href="javascript:;" class="fr btn btn-primary radius mr-10 mt-6" onclick="window.location.reload()">刷新</a>
                        </div>
                        <div class="w-set-nr">
                            <ul class="info-item-block">
                                <li class="rowElem">
                                    <span class="item-hd">partnerid：</span>
                                    <div class="item-bd">
                                        <input type="text" name="partnerid" id="partnerid" class="input-text w300" value="{$partnerid}"> (12301合同)
                                    </div>
                                </li>
                                <li class="rowElem">
                                    <span class="item-hd">旅游投诉服务热线：</span>
                                    <div class="item-bd">
                                        <input type="text" name="localComplaintPhone" id="localComplaintPhone" class="input-text w300" value="{$localComplaintPhone}"> (12301合同)
                                    </div>
                                </li>
                            </ul>
                            <div class="clear clearfix pt-20">
                                <input type="hidden" name="webid" id="webid" value="0">
                                <a class="btn btn-primary size-L radius ml-115" href="javascript:;" id="btn_save">保存</a>
                                <input type="hidden" name="webid" id="webid" value="0">
                            </div>
                        </div>
                    </div>
                </form>
            </td>
        </tr>
    </table>

<script>
    $(document).ready(function () {
        //配置信息保存
        $("#btn_save").click(function () {

            var partnerid = $('#partnerid').val();
            if(partnerid == ''){
                ST.Util.showMsg('partnerid不能为空',5,1000);
                return false;
            }
            var localComplaintPhone = $('#localComplaintPhone').val();
            if(localComplaintPhone == ''){
                ST.Util.showMsg('旅游投诉服务热线不能为空',5,1000);
                return false;
            }
            $.post(SITEURL+'contract/admin/contract/set_partnerid/action/update',{'partnerid':partnerid,"localComplaintPhone":localComplaintPhone},function(re){
                if(re==='ok')
                {
                    ST.Util.showMsg('操作成功',4,1000);
                }else{
                    ST.Util.showMsg('操作失败',5,1000);
                }
            })
        });
    });
</script>
</body>
</html>
